package top.bug.blog.service;

/**
 * @author <a href="https://github.com/jiusi66">九思.</a>
 * @email 10837907@qq.com
 * @from <a href="https://www.52bug.top">递归茶馆-www.52bug.top</a>
 * @description 点赞操作 接口
 */
public interface LikeService {

    /**
     * 文章点赞
     */
    boolean tryLike(String keyPrefix, String ip, String contentId);

    /**
     * 取消点赞
     */
    boolean cancelLike(String keyPrefix, String ip, String contentId);

    /**
     * 判断指定IP当日是否已点赞某内容
     */
    boolean hasLikedToday(String keyPrefix, String ip, String contentId);

}
